package jprofiler.thread;

/**
 * @Author: David
 * @Date: 2021/3/31  19:37
 * @Version 1.0
 */
public class DeadLockA implements Runnable{

    @Override
    public void run() {
        while (true) {
            synchronized (DeadLockMain.LOCK_OBJ1) {
                System.out.println(" ThreadA get lock1");
                synchronized (DeadLockMain.LOCK_OBJ2) {
                    System.out.println(" ThreadA get lock2");

                }
            }
        }
    }
}
